package com.kgc.basicprovider.dao;

import com.kgc.basic.pojo.Customer;

import java.util.List;
import java.util.Map;

public interface CustomerMapper {


    //查询所有客户
    List<Customer> selectAllCustomer();

    //校验编码是否重复
    Customer selectCustomerByCode(String code);

    List<Customer>  selectCustomerByPage(Map<String,Object> map);

    int insertCustomer(Customer customer);

    int updateCustomer(Customer customer);

    int deleteCustomer(int id);

    //
    Map<String,Object> getAllCustomerByData();
}
